home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / ALL95.LZH / letters_fj / text0011.txt < prev    next >
Encoding:
Text File  |  1995-10-04  |  1.8 KB  |  48 lines

  1. Hi,
  2.  
  3. I've incorporated some simple statistics collection in DVIEW which gave
  4. some numbers that are interesting for the optimization. The figures are
  5. approximate averages over more than 200 drawings from five different levels.
  6.  
  7. Function    Calls    Internal loops
  8.                        (1)     (2)
  9. Addfloor     150       1100
  10. Addwall       50       1700
  11. Coldraw      600
  12. Rowdraw     1000
  13. Drawnode     200
  14. Drawssector  100        300
  15. Loadseg      150       1600    400
  16.  
  17. Time for
  18. structure setup:   0.28
  19. actual drawing:    0.08
  20. chunky to planar:  0.11
  21.  
  22. >From this data and some more examining of the code, I've come to the
  23. conclusion that we'll never get anything close to adequate performance
  24. running the 'structure setup' engine on the '030.
  25. (I'd be glad to hear a different opinion.  ;-)
  26. I am, however, almost certain that the necessary data from the .WAD can
  27. be held in the DSPs RAM. The original 'structure engine' used a number
  28. of large arrays, though, which would not have fit. Fortunately, I believe
  29. I have found a way to get rid of almost all of that.
  30.  
  31. Finally, I've given some thought to the sprite drawing and discovered
  32. that it will be even more tricky than I previously thought. The clipping
  33. against walls and floors will be quite difficult. Perhaps even to such
  34. a degree that the extra arrays I mentioned above must actually be
  35. re-inserted, which would be very bad.
  36. If you have any ideas on that I'd be glad to hear about them, since I'm
  37. afraid it will be a major stumbling block for the project.
  38.  
  39. Regards,
  40. Johan
  41.  
  42. --
  43.   Chalmers University   | Why are these |  e-mail:   d8klojo@dtek.chalmers.se
  44.      of Technology      |  .signatures  |            rand@cd.chalmers.se
  45.                         | so hard to do |  www/ftp:  rand.thn.htu.se
  46.    Gothenburg, Sweden   |     well?     |            (MGIFv5 and QLem)
  47.  
  48.